<?php
require_once 'Modules/Certificate.php';

class SESSION{
	public static function Certificate(){
		$m=new M_Certificate();
		if(isset($_COOKIE['SESSIONID']))
			$sid=$_COOKIE['SESSIONID'];
		else
			$sid=null;
		if($sid!==null){
			$Certificate=new Certificate();
			$Certificate->Id=$sid;
			return $m->Single($Certificate);
		}
		else
			return null;
	}
}

?>